package cn.wsalix.biz.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import cn.anlaser.repository.ParentRepository;
import cn.wsalix.biz.entity.Category;

public interface CategoryRepository extends ParentRepository<Category> {
	@Query("select u from Category u where u.code = :code")
	public Category findByCodeOne(@Param("code") String code);

}
